# -*- coding: utf-8 -*-
# createTime: 2018/12/19 10:27
from django.dispatch import receiver, Signal



post_user_create = Signal(providing_args=['user'])


# @receiver(post_user_create)
# def on_user_create(sender, user=None, **kwargs):
#     logger.debug("Receive user `{}` create signal".format(user.name))
#     from .utils import send_user_created_mail
#     logger.info("   - Sending welcome mail ...".format(user.name))
#     if user.email:
#         send_user_created_mail(user)

